Skip to content

CI/CD: auto-deploy API to Cloud Run (Workload Identity Federation) - #13

Merged
amrtgaber merged 1 commit into
mainfrom
ci/cloud-run-deploy
Jun 16, 2026
Merged

CI/CD: auto-deploy API to Cloud Run (Workload Identity Federation)#13
amrtgaber merged 1 commit into
mainfrom
ci/cloud-run-deploy

Conversation

@amrtgaber

Copy link
Copy Markdown
Contributor

Adds .github/workflows/deploy.yml — on merge to main, GitHub Actions builds the image via Cloud Build and deploys a new Cloud Run revision, authenticating to GCP with Workload Identity Federation (no long-lived service-account keys).

GCP side (already provisioned): a github-pool WIF provider locked to this repo + a github-deployer service account with Cloud Run / Cloud Build / Artifact Registry roles and serviceAccountUser on the runtime SA.

Mirrors scripts/deploy.sh. DB migrations are intentionally not run here (separate manual step via the Cloud SQL Auth Proxy — see README).

Closes #5 — Phase D, the last item from the original rollout plan.

Deploys on merge to main via Workload Identity Federation (no stored SA keys),
mirroring scripts/deploy.sh. Database migrations remain a separate manual step.
@amrtgaber
amrtgaber merged commit d3b5705 into main Jun 16, 2026
2 checks passed
@amrtgaber
amrtgaber deleted the ci/cloud-run-deploy branch June 16, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase D — CI/CD for API auto-deploy

1 participant